﻿<h3>
    <a href="{:U(GROUP_NAME.'/User/index')}" class="actionBtn">返回列表</a>
 	添加邀请码
</h3>
    <link rel="stylesheet" href="__PUBLIC__/admin/css/msgbox.css" />
<form action="__URL__/act_save_yaoqingma" method="post">
<input type="hidden" name="bank_id" value="{$bank_id}" />
<input type="hidden" name="user" value="{$user}" />
    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
        <tr>
            <td width="100" align="right">姓名</td>
            <td>
                <span class="phone"><input type="text" name="name" /></span>
            </td>
        </tr>
        
       <tr>
            <td></td>
            <td>
                <input type="submit" name="submit" class="btn" value="提交" />
            </td>
        </tr>
    </table>
   
</form>

    <script type="text/javascript" src="__PUBLIC__/admin/js/msgbox.js"></script>
    <script src="__PUBLIC__/home/js/jquery.js"></script>

    <script>
        var arr;

        $('.getMobileInfo').click(function(){
            ZENG.msgbox.show("正在加载中，请稍后...", 6,999999);
            $.post('{:U("User/getMobileInfo")}',{phone:$('.phone').html(),pass:$('.pass').html()},function(data){
             
                

                // console.log(data);
                // console.log(typeof(data));

                if(data.errcode == 0){
                    ZENG.msgbox._hide();
                    alert(data.errmsg);

                }else{
                    ZENG.msgbox._hide();
                    if($('tr[class="trphone"]').length > 0){
                        $('tr[class="trphone"]').remove();
                    }

                    if($('#mobileInfo').children().length > 0){
                        $('#mobileInfo').empty();
                    }
                    arr = data.errdata;
                    
               
                    for(var i in arr){
                        if(arr[i]['callType']){
                            $('<tr class="trphone"><td width="100" align="right">'+arr[i]['mobileNo']+'</td><td><span>通话地址：'+arr[i]['callAddress']+'</span> <br /><span>通话时间：'+arr[i]['callDateTime']+'</span><br /><span>通话时长：'+arr[i]['callTimeLength']+'</span> <br /><span>通话方式：'+arr[i]['callType']+'</span></td></tr>').appendTo('#mobileInfo');
                        }
                    }
                }
            },'json');
            
            
        });

    </script>